<extend name="Public:base" />
<block name="content">
<Widget:show col="12" title="配置文件">
<form valid action="{:U("ApiColud/saveCfg?apid=$apid")}" method="post">
<input type="hidden" name="apid" value="{$apid}">
    <div class="form-title">基本信息</div>
    <div class="row">
        <Ui:field col="2" label="应用名称" value="{$data.name}" name="name" ></Ui:field>
        <Ui:field col="2" label="ApiCloud ID" value="{$data.id}" name="id" ></Ui:field>
        <Ui:field col="2" label="版本号" value="{$data.version}" name="version" ></Ui:field>
        <Ui:field col="6" label="应用描述" value="{$data.description}" name="description" ></Ui:field>
    </div>
    <div class="row">
        <Ui:field label="开发者姓名" col="2" value="{$data.author}" name="author" ></Ui:field>
        <Ui:field label="开发者邮箱" col="3" value="{$data.email}" name="email" ></Ui:field>
        <Ui:field label="开发者主页" value="{$data.href}" name="href" ></Ui:field>
    </div>
    <div class="form-title">应用信息</div>
    <div class="row">
        <Ui:field hideipt="true" col="2" label="调试模式" >
            <select data-value="{$data.debug}" name="debug" class="form-control ">
            <option value="false">关闭</option>
            <option value="true">开启</option>
            </select>
        </Ui:field>
        <Ui:field hideipt="true" col="2" label="全屏运行" >
            <select data-value="{$data.fullScreen}" name="fullScreen" class="form-control ">
            <option value="false">否</option>
            <option value="true">是</option>
            </select>
        </Ui:field>
        <Ui:field hideipt="true" col="2" label="启动页" >
            <select data-value="{$data.autoLaunch}" name="autoLaunch" class="form-control ">
            <option value="true">显示</option>
            <option value="false">隐藏</option>
            </select>
        </Ui:field>
        <Ui:field hideipt="true" col="2" label="自动更新" >
            <select name="autoUpdate" data-value="{$data.autoUpdate}" class="form-control ">
            <option value="false">否</option>
            <option value="true">是</option>
            </select>
        </Ui:field>
    </div>
    <div class="form-title">开放SDK</div>
    <div class="row">
        <Ui:field label="QQ AppId" col="2" value="{$data.urlScheme}" name="urlScheme" ></Ui:field>
        <Ui:field label="QQ ApiKey" col="2" value="{$data.ApiKey}" name="ApiKey" ></Ui:field>

        <Ui:field label="微信 AppId" col="2" value="{$data.urlScheme}" name="urlScheme" ></Ui:field>
        <Ui:field label="微信 ApiKey" col="2" value="{$data.ApiKey}" name="ApiKey" ></Ui:field>

        <Ui:field label="微博 AppId" col="2" value="{$data.urlScheme}" name="urlScheme" ></Ui:field>
        <Ui:field label="微博 ApiKey" col="2" value="{$data.ApiKey}" name="ApiKey" ></Ui:field>
    </div>
    <button ajax-submit type="submit" class="btn btn-blue">保存</button>
    <a target="_blank" class="btn btn-link" href="{:U("ApiColud/downCfg?apid=$apid")}">下载配置文件</a>
</form>    
</Widget:show>

</block>
